package com.qdlc.p2p.biz.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.service.AwardSearchService;
import com.qdlc.p2p.dal.dao.AwardSearchDao;
import com.qdlc.p2p.dal.model.AwardModel;

/**
 * Created by lenovo on 2015/12/11.
 */


@Service("awardSearchService")
public class AwardSearchServiceImpl implements AwardSearchService{

    @Resource
    private AwardSearchDao awardSearchDao;

    @Override
    public AwardModel firstTender(long borrowId) {
        return awardSearchDao.firstTender(borrowId);
    }

    @Override
    public AwardModel lastTender(long borrowId) {
        return awardSearchDao.lastTender(borrowId);
    }

    @Override
    public AwardModel mostTender(long borrowId) {
        return awardSearchDao.mostTender(borrowId);
    }

    @Override
    public List<AwardModel> allFirstTender() {
        return awardSearchDao.allFirstTender();
    }

    @Override
    public List<AwardModel> allLastTender() {
        return awardSearchDao.allLastTender();
    }

    @Override
    public List<AwardModel> allMostTender() {
        return awardSearchDao.allMostTender();
    }
}
